package com.demo.factory.factoryMethod.pizzaStore.order;

import com.demo.factory.factoryMethod.pizzaStore.pizza.*;

public class LDOrderPizza extends OrderPizza {

    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if (orderType.equals("ldPepper")) {
            pizza = new LDPepperPizza();
        } else if (orderType.equals("ldCheese")) {
            pizza = new LDCheesePizza();
        }
        return pizza;
    }
}
